package com.cfgj.mapper;


import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.cfgj.entity.Image;
import com.cfgj.entity.Projects;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Component;

import java.util.List;

@Component
public interface ProjectsMapper extends BaseMapper<Projects> {
    //寻找步骤0，待审核的项目
    List<Projects> findStepZero();

    //寻找步骤1，待审核的项目
    List<Projects> findStepOne();

    //查找某步骤总数
    Integer findStepNum(Integer step);

    //升级项目 通过审核

    void updateProjectStepZero(Integer id);
    //驳回

    void updateProjectStepZeroThird(Integer id);
    List<Image> FindCarList(Integer id);
    List<Image> FindHomeList(Integer id);
    List<Image> FindIdCardList(Integer id);

    List<Image> FindOtherList(Integer id);

    void updateProjectUserMoneyByProject(Projects project);
}
